package cn.lg.soar.system.general.service;

import cn.lg.soar.common.model.OneToManyDTO;
import cn.lg.soar.common.model.PageQuery;
import cn.lg.soar.common.model.PageResult;
import cn.lg.soar.system.auth.entity.User;
import cn.lg.soar.system.general.entity.UserTag;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * UserTag服务层接口
 * 租户
 * @author luguoxiang
 * @since 2022-04-30
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public interface IUserTagService extends IService<UserTag> {

    List<User> users(Long tagId);

    List<UserTag> tags(Long userId);

    void addUser(OneToManyDTO<Long, Long> dto);

    void removeUser(List<Long> ids);

    PageResult<User> queryUser(Long tagId, PageQuery query, User user);

}
